package top.zk123.chain.mapper;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import top.zk123.chain.bean.User;

public interface UserMapper extends JpaRepository<User, String> {

    @Query(value = "select * from user where open_id = :openId", nativeQuery = true)
    User findByOpenId(String openId);
}
